echo off
cd d:\pax

echo "create sourcepath.txt..."
dir  d:\pax\*.java  /S /A-D /B > d:\pax\sourcepath.txt

echo "delete classes..."
rd d:\pax\WebContent\WEB-INF\classes  /Q /S

echo "create classes..."
mkdir d:\pax\WebContent\WEB-INF\classes

echo "javac..."
javac -cp "D:/pax/devLib/jetty9-all.jar;D:/pax/WebContent/WEB-INF/lib/*;D:/pax/WebContent/WEB-INF/classes/*" -d D:/pax/WebContent/WEB-INF/classes -encoding utf8 @d:/pax/sourcepath.txt
copy d:\pax\config\* d:\pax\WebContent\WEB-INF\classes

echo "delete sourcepath.txt..."
del d:\pax\sourcepath.txt /Q

echo "java..."
java -cp "D:/pax/devLib/jetty9-all.jar;D:/pax/WebContent/WEB-INF/classes;D:/pax/WebContent/WEB-INF/lib/*" jetty.web.StartJetty

